/*
 * @filename DefaultEmailMessage.java
 * @author barry
 * @version 0.0.1
 * @date 2020年4月2日
 */
package com.bnzj.core.message.impl;

import com.bnzj.core.message.EmailMessage;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @author barry
 * @date 2020-04-02
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class DefaultEmailMessage implements EmailMessage {
    private String to;//主送
    private String cc;//抄送
    private String from;//
    private String subject;//标题
    private String content;//内容
    @Override
    public String getWho() {
        return to;
    }
    @Override
    public String getMessage() {
        return content;
    }
    @Override
    public String getFrom() {
        return from;
    }
}
